package cn.b.sky.mes.mm.dao;

import java.util.List;

import cn.b.sky.mes.mm.model.Supplier;
import org.apache.ibatis.annotations.Param;

import cn.b.sky.mes.mm.model.condition.SupplierCondition;

public interface SupplierDao {
  List<Supplier> selectSupplierByCondition(SupplierCondition condition);

  int selectSupplierCountByCondition(SupplierCondition condition);

  Supplier selectSupplierByPk(@Param("siteCode") String siteCode, @Param("supplierCode") String supplierCode);

  void insertSupplier(Supplier supplier);

  void updateSupplier(Supplier supplier);

  void deleteSupplierByPk(@Param("siteCode") String siteCode, @Param("supplierCode") String supplierCode);

  List<Supplier> getSuppliersSuggests(SupplierCondition condition);
}
